package com.mingqijia.gassafety.job.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mingqijia.gassafety.db.entity.RecordDetectorHistory;
import com.mingqijia.gassafety.db.mapper.RecordDetectorHistoryMapper;
import com.mingqijia.gassafety.job.service.RecordDetectorHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 探测器上报数据表 服务实现类
 * </p>
 *
 * @author guoliang.lao
 * @since 2023-10-12
 */
@Service
public class RecordDetectorHistoryServiceImpl extends ServiceImpl<RecordDetectorHistoryMapper, RecordDetectorHistory> implements RecordDetectorHistoryService {

    @Autowired
    private RecordDetectorHistoryMapper recordDetectorHistoryMapper;

    @Override
    public void insertBatch(List<RecordDetectorHistory> recordDetectorHistoryList, String month) {
        recordDetectorHistoryMapper.insertBatch(recordDetectorHistoryList, month);
    }

    @Override
    public void deleteRecordHistory(String month) {
        recordDetectorHistoryMapper.deleteRecordHistory(month);
    }
}
